var exec = require('cordova/exec');

 (function(cordova){
    var Ocr = function() {

    };

     Ocr.prototype.callNativeModule = function(params, success, fail) {
        return exec(success,fail, 'ocr', 'callNativeModule', params);
     };

    window.ocr = new Ocr();

    // backwards compatibility
    window.plugins = window.plugins || {};
    window.plugins.ocr = window.ocr;
})( window.Cordova || window.cordova);